﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ForeProgram/Shared/Shop.master"
    AutoEventWireup="true" CodeFile="shopAddOrder.aspx.cs" Inherits="ForeProgram_shopAddOrder" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link rel="stylesheet" href="css/shoppingcart.css" type="text/css" />
    <script type="text/javascript">
        function saveOrder() {
            swithBtn('hidden');
        }
        //dwr回调按钮的隐藏和显示
        function swithBtn(type) {
            if (type == 'hidden') {
                document.getElementById("submit_btn").style.display = "none";
                document.getElementById("dealDwr").style.display = "";
            } else {
                document.getElementById("submit_btn").style.display = "";
                document.getElementById("dealDwr").style.display = "none";
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="Wrap_cart">
        <!--mycart_tip end -->
        <div class="BuyCon">
            <div class="BuyContent">
                <!-- buyflow -->
                <div class="buyflow">
                    <div class="flow buytwo">
                        <ul>
                            <li class="one">我挑选的商品</li>
                            <li class="two"><strong class="F_red">填写核对订单信息</strong></li>
                            <li class="three">订单已成功</li>
                        </ul>
                    </div>
                    <img align="absmiddle" src="images/buyicobg.gif">
                </div>
                <!--End: buyflow -->
            </div>
        </div>
        <div class="clear">
        </div>
        <div class="List_cart marginb10">
            <h6>
                <strong>填写核对订单信息</strong></h6>
            <input type="hidden" value="391506" name="userId" id="userId">
            <input type="hidden" value="" name="cneeId" id="cneeId">
            <input type="hidden" value="" name="inputType" id="inputType">
            <div class="cart_table">
                <!--收货人地址开始-->
                <div id="Div1">
                    <div class="o_show">
                        <h5>
                            收货人信息&nbsp;<%--<a style="cursor: pointer" id="link_modify_inv" href="javascript:consigneeExists();">[选择/修改]</a><span
                                style="display: none; cursor: pointer" id="link_modify_inv2"><a href="javascript:consigneeNotExists()">[取消]</a></span>--%>
                        </h5>
                        <div id="div2">
                            <div style="display: block" id="consigneeInfo" class="middle">
                                <table>
                                    <tbody>
                                        <tr>
                                            <td style="width: 80px" align="right">
                                                收货人姓名：
                                            </td>
                                            <td id="showConsigneeName">
                                                <asp:Label ID="lblName" runat="server" Text=""></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                学 校：
                                            </td>
                                            <td id="showProvince">
                                                <asp:Label ID="lblSchoolName" runat="server" Text=""></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                手机号码：
                                            </td>
                                            <td id="showMobile">
                                                <asp:Label ID="lblMobile" runat="server" Text=""></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                电子邮件：
                                            </td>
                                            <td id="showMail">
                                                <asp:Label ID="lblEMail" runat="server" Text=""></asp:Label>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <!--收货人地址结束-->
                    <!--修改收货人地址开始-->
                    <!--收货人地址开始-->
                    <div id="part_consignee">
                        <!--修改收货人地址开始-->
                        <div style="margin-bottom: 10px" id="div_inv">
                            <div>
                                <div class="o_write">
                                    <div class="middle">
                                        <div class="cydz">
                                            <ul id="addrList">
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!--修改收货人地址结束-->
                            <input type="hidden" value="" id="voucherIds" name="voucherIds">
                            <input type="hidden" value="" id="voucherNos" name="voucherNos">
                            <input type="hidden" id="voucherAmount" name="voucherAmount" value="0">
                            <input type="hidden" id="integralAmount" name="order.integral" value="0">
                            <input type="hidden" id="orderGroupAmount" name="orderGroupAmount" value="0">
                            <input type="hidden" value="" name="order.orderExtend.consigneeId" id="consigneeId">
                            <!-- 以旧换新商品id -->
                            <input type="hidden" value="0" id="weightFreight" name="weightFreight">
                            <!--修改支付方式及配送方式开始-->
                            <div style="margin-bottom: 10px">
                                <!--Cart信息开始-->
                                <div id="part_cart">
                                    <div class="o_show">
                                        <h5>
                                            <span style="margin-right: 740px;">商品清单</span><a style="color: #0070D7" href="shopCartView.aspx">返回修改购物车</a></h5>
                                        <div class="middle">
                                            <asp:GridView ID="gvTable" GridLines="None" runat="server" CssClass="Table" Width="100%" 
                                                AutoGenerateColumns="False" onrowdatabound="gvTable_RowDataBound">
                                                <Columns>
                                                    <asp:BoundField HeaderStyle-Width="15%" DataField="productid" HeaderText="商品编号" HeaderStyle-CssClass="align_Center Thead">
                                                    </asp:BoundField>
                                                    <asp:TemplateField HeaderStyle-Width="50%" HeaderText="商品名称" HeaderStyle-CssClass="align_Center Thead">
                                                        <ItemTemplate>
                                                            <asp:HyperLink ID="hlProduct" Target="_parent" runat="server"></asp:HyperLink>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField HeaderStyle-Width="11%" DataField="bandName" HeaderText="带宽" HeaderStyle-CssClass="align_Center Thead">
                                                    </asp:BoundField>
                                                    <asp:BoundField HeaderStyle-Width="8%" DataField="unitprice" HeaderText="价格"  DataFormatString="{0:0.00}" HeaderStyle-CssClass="align_Center Thead">
                                                    </asp:BoundField>
                                                    <asp:BoundField HeaderStyle-Width="8%" DataField="timeName" HeaderText="使用期限" HeaderStyle-CssClass="align_Center Thead">
                                                    </asp:BoundField>
                                                    <asp:BoundField HeaderStyle-Width="8%" DataField="quantity" HeaderText="商品数量" HeaderStyle-CssClass="align_Center Thead">
                                                    </asp:BoundField>
                                                </Columns>
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </div>
                                <!--Cart信息开始-->
                                <div id="ware_info">
                                    <div style="background: #fff; font-size: 14px; font-weight: bold; padding-left: 2px;
                                        height: 28px">
                                        结算信息</div>
                                    <div class="middle">
                                        <!--订单信息-->
                                        <ul id="part_info">
                                            <li style="padding-bottom: 5px; padding-top: 10px" class="info1">
                                                <input type="hidden" id="amountHide" value="40">
                                                商品金额：<asp:Label ID="lblAmount" runat="server" Text=""></asp:Label>
                                                <br>
                                            </li>
                                            <li style="width: 100%; overflow: hidden;" class="info2">
                                                <table cellspacing="0" cellpadding="0" style="width: 100%">
                                                    <tbody>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td style="text-align: right; font-size: 15px;">
                                                                <b>应付总额：<asp:Label ID="lbltotalAmount" style="color:Red" runat="server" Text=""></asp:Label> 元</b>
                                                                <input type="hidden" id="orderAmount" name="orderAmount" value="40">
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </li>
                                        </ul>
                                        <!--订单信息结束-->
                                        <div style="clear: both">
                                        </div>
                                        <!--优惠券结束-->
                                    </div>
                                    <!--提交-->
                                    <div class="o_show submit">
                                        <div>
                                            <span id="submitWaitInfo"></span>
                                        </div>
                                        <div id="submit_btn">
                                            <!-- 提交表单 -->
                                            <asp:Label ID="lblVerifier" style="color:Red" runat="server" Text=""></asp:Label>
                                            <LABEL class="ftx23">您的手机号：</LABEL>
                                            <asp:TextBox ID="txtPhone" Text="" Columns="13" MaxLength="13" runat="server"></asp:TextBox>
                                            <asp:Button ID="btnOrder" runat="server"  OnClientClick="saveOrder()"
                                                style="margin-top: 2px; border: none;
                                                cursor: pointer; width: 110px; height: 45px; background: url(images/submit.jpg)" 
                                                Text="" onclick="btnOrder_Click" />
                                        </div>
                                        <!--回调函数时显示内容-->
                                        <div class="clear" style="padding-right: 10px; display: none" id="dealDwr">
                                            <div style="border: 1px #01b703 solid; background-color: #f1fde5; color: #01b703;
                                                padding: 2px; padding-left: 25px; padding-right: 25px; float: right">
                                                正在处理订单填写页面,请稍候！</div>
                                        </div>
                                    </div>
                                    <!--提交结束-->
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
</asp:Content>
